package com.jijuxie.house.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jijuxie.common.core.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@TableName("house_appointment")
@EqualsAndHashCode(callSuper = true)
public class HouseAppointment extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long appointmentId;

    /**
     * 房源ID
     */
    private Long houseId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 经纪人ID
     */
    private Long agentId;

    /**
     * 预约时间
     */
    private LocalDateTime appointmentTime;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 备注说明
     */
    private String remark;

    /**
     * 状态（0待确认 1已确认 2已取消）
     */
    private String status;

    /**
     * 删除标志（0存在 1删除）
     */
    @TableLogic
    private String delFlag;
}
